package com.maiji.cloud.service;

import com.maiji.cloud.entities.shopingmall.DiscountCoupon;
import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.entities.shopingmall.DiscountCouponLog;
import com.maiji.cloud.request.ReqMetaData;
import com.maiji.cloud.response.BaseMetaResDto;
import com.maiji.cloud.response.BaseResDto;

import java.util.Date;
import java.util.List;

public interface DiscountCouponService extends IService<DiscountCoupon> {

    BaseMetaResDto<List<DiscountCoupon>> findAllDiscountCoupons(Integer type, Boolean amount, ReqMetaData metaData);

    BaseResDto editDiscountCoupon(DiscountCouponLog discountCouponLog);

    BaseMetaResDto<List<DiscountCouponLog>> findAllDiscountCouponLogs (Integer type, String operationDesc, List<Date> updateDates, ReqMetaData metaData);
}
